import request from "@/utils/request";

// 注册
export const register = data => request.post('/api/reg',data)

// 登录
export const login = data => request.post('/api/login',data)

// 获取用户信息
export const getUser = () => request.get('/my/userinfo')

// 更新用户信息
export const updateUser = data => request.put('/my/userinfo',data)

// 更换头像
export const updateAvatar = data => request.patch('/my/update/avatar',data)

// 修改用户密码
export const updatePwd = data => request.patch('/my/updatepwd',data)